<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bootstrap导航栏设计</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
</head>
<style>
    body{
        margin: 1%;
        padding: 2%;
    }
</style>

<body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
        <button class="navbar-toggler" data-toggle="collapse" data-target="#navDemo">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navDemo">
            <a href="#" class="navbar-brand">
                <img src="../img/head.jpg" alt="头像" width="30" height="30" class="d-inline-black align-top">
                金字招牌
            </a>
            <div class="navbar-nav">
                <a href="#" class="nav-item nav-link">首页</a>
                <a href="#" class="nav-item nav-link">列表</a>
                <a href="#" class="nav-item nav-link">设置</a>
                <a href="#" class="nav-item nav-link">关于</a>
            </div>
            <form action="" class="form-inline ml-auto">
                <input type="text" name="search" id="search" class="form-control mr-sm-2" placeholder="在本站搜索">
                <button class="btn btn-outline-secondary my-2 my-sm-0">搜索</button>
            </form>
        </div>
    </nav>

    <script src="../js/jquery.min.js"></script>
    <script src="../js/bootstrap.bundle.min.js"></script>
    
</body>

</html>